cmake_minimum_required(VERSION 3.0)
project(calltrace)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_BUILD_TYPE "Release")

option(REMOTE "running remote" OFF)
if(REMOTE)
    add_definitions(-DREMOTE)
endif(REMOTE)

#add_definitions(-D REMOTE)

#add_executable(calltrace main.cpp)
add_executable(merge utils/merge.cpp)
add_executable(to_undirected_graph utils/to_undirected_graph.cpp)
add_executable(dis dis.cpp)
add_executable(trace_stats utils/trace_stats.cpp)
add_executable(extract_trace utils/extract_trace.cpp)
add_executable(select_rep trace/select_rep.cpp)
add_executable(get_valid_trace trace/get_valid_trace.cpp)
add_executable(dis_cache dis_cache.cpp)
add_executable(dis_avg dis_avg.cpp)
add_executable(show_path utils/show_path.cpp)
add_executable(count_path count_path.cpp)
add_executable(split_trace trace/split_trace.cpp)
add_executable(directed_min_parent directed/directed_min_parent.cpp)
add_executable(get_trace_functions utils/get_trace_functions.cpp)
add_executable(directed_dis_cache directed/directed_dis_cache.cpp)
add_executable(directed_merge utils/directed_merge.cpp)